package org.aeon.newsmanagersystem.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author: MissingAeon
 * @date: 2024/3/29 17:21
 * @description:
 */
@Controller
public class OtherControllers {
    @RequestMapping("/error")
    public String error(Model model, String text) {
            model.addAttribute("text", text);
        return "error";
    }
}
